package com.lwq.service;

import com.lwq.entity.Student;
import com.lwq.service.impl.FeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Collection;

/**
 * @ClassName
 * @Description
 * @Author liwq
 * @Date 2021/2/1 16:55
 * @Version 1.0
 */
@FeignClient(value = "user-provider",fallback = FeignServiceImpl.class)
public interface IFeignService {

    @GetMapping("/student/findAll")
    public Collection<Student> findAll();

    @GetMapping("/student/index")
    public String index();
}
